
<form id="goods-form" method="post">
    <table >
        <tr>
            <td width="60" align="right">商品名称:</td>
            <td><input type="text" id="goods_id" name="goods_id" value="" /></td>
        </tr>
        <tr>
            <td align="right">商品价格:</td>
            <td><input type="text" name="goods_price" class="easyui-textbox" value="" /></td>
        </tr>
        <tr>
            <td align="right">商品数量:</td>
            <td><input type="text" name="goods_num" class="easyui-textbox" value="" /></td>
        </tr>
    </table>
</form>
<script type="text/javascript">
    $(document).ready(function(){
        $("#goods_id").combobox({
            method: 'get',
            mode:'remote' ,
            url:'/product/goods/ajaxlist',
            valueField:'id',
            panelMaxHeight:80,
            textField:'goods_name',
            panelHeight:'auto',
            editable:true,
            filter: function(q, row){
                var opts = $(this).combobox('options');
                return row[opts.textField].indexOf(q) >= 0;
            },
        })
    })
</script>